const http = uni.$u.http

//我的
export const getwxuser = () => http.get('/api/wx/wxuser', {
	params: {}
})

//获取DIY数据
export const getDiy = (id) => http.get(`api/front/pagediy/info/${id}`, {
	params: {}
})

//获取首页公告滚动列表
export const getNoticeList = (id) => http.get(`api/front/article/list/${id}`, {
	params: {}
})

//获取首页购买信息滚动列表
export const getPurchaseList = (id) => http.get(`api/front/index/get/user/buy`, {
	params: {}
})

//全局本地图片域名
export const getImageDomain = (id) => http.get(`api/front/index/image/domain`, {
	params: {}
})

//根据商品id集合查询对应商品
export const productByidsApi = (ids) => http.get(`api/front/product/byids/${ids}`, {
	params: {}
})

//商品列表
export const productList = (ids) => http.get(`api/front/product/list`, {
	params: {}
})

//查询一级活动专区
export const getFirstZone = (id) => http.get(`api/front/activity/zone/get/first/${id}`, {
	params: {}
})

//活动专区商品列表
export const getZoneProductList = (params) => http.get(`api/front/product/activity/zone/pro/list`, {
	params
})

// 获取限时活动信息
export const getActivityInfo = (id) => http.get(`/api/front/limitedtime/activity/${id}`)



// 获取限时活动信息-商品列表
export const getActivityProduct = (params) => http.get(`/api/front/limitedtime/product/list`, {
	params
})